#ifndef __TIMER_H
#define __TIMER_H

#include <time.h>

int set_timer(int milliseconds,int repeat,void(*handler)(void *),void *data);
void clear_timer(int id);
double get_time(void);
int mystrftime(char *res, int maxsize, char *fmt, time_t t);

#define TIMER_SYM   \
    {.name="strftime",.handle=mystrftime},\
    DLSYM(get_time),\
    DLSYM(set_timer),\
    DLSYM(clear_timer)

#endif